
<div class="container">
<table class="table table-bordered table striped text-center">
    <thead>
        <tr>
            <td>
                <strong>Etat</strong>
            </td>
            <td>
                <strong>Item</strong>
            </td>
            <td>
                <strong>Priorité</strong>
            </td>
            <td>
                <strong>Tâche</strong>
            </td>
            <td>
                <strong>Heure Début</strong>
            </td>
            <td>
                <strong>Heure Fin</strong>
            </td>
            <td>
                <strong>Heure Début</strong>
            </td>
            <td>
                <strong>Heure Fin</strong>
            </td>
        </tr>
    </thead>
    <?php
    foreach ($todoList as $value) {



        //Nom de l'item'
        echo "<tr>";
        echo "<td>" . $value->TSK_isNP . "</td>";


        //Priorité de l'item


        echo "<td>" . $value->ITM_LIB . "</td>";


        //Priorité de l'item

        echo "<td>" . $value->ITM_priority . "</td>";


        //Nom de la tache

        echo "<td>" . $value->TSK_LIB . "</td>";


        //Heure début plan

        echo "<td>" . $value->TSK_start_hour_plan . "</td>";


        //Heure fin plan

        echo "<td>" . $value->TSK_end_hour_plan . "</td>";


        //Heure début réel
        echo "<td>";
        if ($value->TSK_start_hour_real == null) {
            echo "Commencer";
        } else {
            echo $value->TSK_start_hour_real;
        }
        echo "</td>";

        //Heure fin réel
        echo "<td>";
        if ($value->TSK_end_hour_real == null) {
            echo "Finir";
        } else {
            echo $value->TSK_end_hour_real;
        }
        echo "</td>";
    }
    ?>

</table>
    </div>